package cn.edu.scau.cmi.tancuier.mutiton;

public class Marshal {
	private static Marshal instance;
	private String name;
	private static int number = 0;
	
	private Marshal(String name){
		this.name = name;
	}
	
	public static Marshal getInstance(String name) {
		if(number < 10) {
			instance = new Marshal(name);
			number++;
			return instance;
		}
		else {
			return null;
		}
	}
	
	public String getName() {
		return name;
	}
}
